package Homework1;

import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;

public class Test {
    public static void main(String[] args) throws ParseException {
        Date trans = trans("2000年08月03日");
        System.out.println(trans);
    }
    public static Date trans(String str) throws ParseException {
        SimpleDateFormat df = new SimpleDateFormat("yyyy年MM月dd日");
        Date parse = df.parse(str);
        return parse;
    }
}
